<{include file="header.html"}>

<{include file="library/form.html"}>

<{include file="sidebar-menu.html"}>

<!--main-container-part-->
<div id="content">

    <{include file="breadcrumbs.html"}>

    <div class="container-fluid">
        <hr>
        <div class="row-fluid">
            <div class="span10">
                <form action="<{$saveurl}>" method="post" class="form-horizontal zxform zxblockui">
                    <input type="hidden" name="id" value="<{$id}>" />
					<input type="hidden" name="level" value="<{$level}>">
                    <input type="hidden" name="parent_cato" value="<{$info_rs.parent_id1}>" />
                    <input type="hidden" name="parent_course" value="<{$info_rs.parent_id}>" />
                    <div class="widget-box">
                        <div class="widget-title"> <span class="icon"> <i class="icon-align-justify"></i> </span>
                            <h5><{if $info_rs.id}>修改<{else}>添加<{/if}><{if $level eq 1}>目录<{elseif $level eq 2}>课程<{elseif $level eq 3}>实验<{/if}></h5>
                        </div>
                        <div class="widget-content nopadding">
							<{if $course_level1_rs}>
							<div class="control-group">
								<label class="control-label">目录 :</label>
								<div class="controls textlabel">
									<span><{$course_level1_rs.name}></span>
								</div>
							</div>
							<{/if}>
							<{if $course_level2_rs}>
							<div class="control-group">
								<label class="control-label">课程 :</label>
								<div class="controls textlabel">
									<span><{$course_level2_rs.name}></span>
								</div>
							</div>
							<{/if}>
                            <div class="control-group">
                                <label class="control-label"><{if $level eq 1}>目录<{elseif $level eq 2}>课程<{elseif $level eq 3}>实验<{/if}>名称 :</label>
                                <div class="controls">
                                    <input type="text" name="name" class="span5" value="<{$info_rs.name}>">
                                </div>
                            </div>
							<div class="control-group">
								<label class="control-label">排序 :</label>
								<div class="controls textlabel">
									<label>
										<input type="text" class="span2" name="sort" value="<{if $info_rs.id}><{$info_rs.sort}><{else}>10<{/if}>"/>
										(数字越小越靠前)
									</label>
								</div>
							</div>
							<div class="control-group">
							    <label class="control-label">状态 :</label>
							    <div class="controls textlabel">	
								  <label>
									  <input type="radio" name="status" value="1" <{if !$id}>checked<{/if}> <{if $info_rs.status == '1'}>checked<{/if}>/>正常
								  </label>
							        <label>
							            <input type="radio" name="status" value="0" <{if $info_rs.status eq '0'}>checked<{/if}>/>关闭
							        </label>
							        
							    </div>
							</div>
                        </div>
                    </div>            
                    <div class="form-actions">
                        <button type="submit" class="btn btn-success">保存</button>
                        <button type="button" onclick="window.location.href = '<{$BACKURL}>'"
                                class="btn form_button_left">返回
                        </button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<!--end-main-container-part-->

<{include file="footer.html"}>